#{extends 'mainContent.html' /}
#{set title:'Comments' /}

<div style="padding-left:50px;">
	<p>We always welcome feedback of this website and our business. Please use the form below to provide us with your feedback.</p>

	<p>Your privacy is important. We will never use your information without your permission.</p>
	<form action="@{Application.submitComments()}" method="post" class="commonForm">
	#{ifErrors}
	   <div class="error">Oops… Please correct the error first.</div>
	#{/ifErrors}
	#{if flash.success}
	    <p class="success">${flash.success}</p>
	#{/if}
	<table width="100%">
		
		<tr>
			<td class="label">
				Name(*)
			</td>
			<td class="value">
				<input type="text" name="c.username" value="${flash['c.username']}"/><span class="error">#{error 'c.username' /}</span>
			</td>
		</tr>
		<tr>
			<td class="label">
				Subject(*)
			</td>
			<td class="value">
				<input type="text" name="c.subject" value="${flash['c.subject']}"/><span class="error">#{error 'c.subject' /}</span>
			</td>
		</tr>
		<tr>
			<td class="label">
				Email(*)
			</td>
			<td class="value">
				<input type="text" name="c.email" value="${flash['c.email']}"/><span class="error">#{error 'c.email' /}</span>
			</td>
		</tr>
		<tr>
			<td class="label">
				Feedback(*)
			</td>
			<td class="value">
				<textarea name="c.feedback" style="height:300px;">${flash['c.feedback']}</textarea><span class="error">#{error 'c.feedback' /}</span>
			</td>
		</tr>
	</table>
	<input type="submit" value="submit">
	</form>
</div>